function example(x: string | number, y: string | boolean): void {
    if (x === y) {
        console.log(`x: ${x.toUpperCase()}`)
        console.log(`y: ${y.toUpperCase()}`)
    } else {
        console.log(`x: ${x} ${typeof (x)}`)
        console.log(`y: ${y} ${typeof (y)}`)
    }
}

example('fuck', 'fuck')
example(999, false)